#!/usr/bin/node

const stdin = process.stdin,
      stdout = process.stdout,
      Tran = require('stream').Transform;

stdin.setEncoding('utf8');

class MyTran extends Tran{

  constrctor(){
    super.call(this);
  }

  _transform (chunk, encoding, callback) {
    this.push(Buffer(chunk.toString('utf8').toUpperCase()));
    callback();
  }
}

let tr = new MyTran();
stdin.pipe(tr).pipe(stdout);
